import * as THREE from 'three'

const loader = new THREE.TextureLoader()
const texture = loader.load('./img/ditu.jpg')
texture.colorSpace = THREE.SRGBColorSpace
texture.wrapT = THREE.RepeatWrapping

const geometry = new THREE.SphereGeometry(50)

const material = new THREE.MeshBasicMaterial({
    map: texture,
})

const mesh = new THREE.Mesh(geometry, material)

export default mesh